package com.hushao.lims.weblims.config;

import com.hushao.lims.weblims.vo.ResponseData;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;


/**
 * @author 930588706
 * @date 18/1/18
 */
@RestControllerAdvice
public class ExceptionHandlerAdvice {
    @ExceptionHandler(Exception.class)
    public ResponseData handleException(Exception e) {
        return  new ResponseData(false,e.getMessage());
    }
}
